﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PcProject.Application.Service.AutoMapper
{
    /// <summary>
    /// 商品表
    /// </summary>
    [Table("ProductDto")]
    public class ProductDto
    {
        [Key]
        public int ProId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(20)]
        public string ProName { get; set; }
        /// <summary>
        /// 商品类型
        /// </summary>
        public int ProType { get; set; }
        /// <summary>
        /// 规格外键ID
        /// </summary>
        public int SpeId { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品现价
        /// </summary>
        public decimal NewPrice { get; set; }
        /// <summary>
        /// 商品图片
        /// </summary>
        public string PicUrl { get; set; }
        /// <summary>
        /// 销量
        /// </summary>
        public int Sales { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        public string ProAdress { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int SheifLife { get; set; }
        /// <summary>
        /// 商品数量
        /// </summary>
        public int ProNum { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Inventory { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int UpOrSet { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 买过
        /// </summary>
        public string Bought { get; set; }
        /// <summary>
        /// 商家
        /// </summary>
        public string Business { get; set; }

        /// <summary>
        /// 商品规格ID
        /// </summary>
        public int SpeciId { get; set; }
        /// <summary>
        /// 尺寸
        /// </summary>
        public string Size { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        public string Color { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; }

    }
}
